<?
class Tag {
	private $status;
	private $tag;
	private $date;
	private $priority;
	private $user = NULL;
	
	public function __construct($status, $tag, $date, $priority = 0, $user = NULL) {
		$this->status = $status;
		$this->tag = $tag;
		$this->date = $date;
		$this->priority = $priority;
		if($user!=NULL) $this->user = $user;
	}
	
	public function getStatus() {
		return $this->status;
	}
	
	public function getUser() {
		return $this->user;
	}
	
	public function getTag() {
		return $this->tag;
	}
	
	public function getPriority() {
		return $this->priority;
	}
	
	public function getDate() {
		return $this->date;
	}
	
	public function toString() {
		return 
			"Class::Tag {\n".
			"\t[status] => ".$this->status."\n".
			"\t[priority] => ".$this->priority."\n".
			"\t[date] => ".$this->date."\n".
			"\t[tag] => ".$this->tag."\n".
			"\t[user] => ".$this->user->getUsername()."\n".
			"}\n";
	}
	
}
?>